x86/irq: local_irq_restore() should not blindly popf
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 22 Oct 2013 15:11:16 +0000 (17:11 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 22 Oct 2013 15:11:16 +0000 (17:11 +0200)
commite5fc6434d710894b5fc5a676d7f4c41608ab3ae6
treeb6ee9c44b00ec19ed766bbfe0810ca5e4ff5a4ce
parente47a90e6dca491c0ceea6ffa18055e7e32565e8e
x86/irq: local_irq_restore() should not blindly popf

local_irq_restore() should only be concerned with possibly changing the
interrupt flag.  A blind popf could corrupt other system flags.

While playing in this area, fixup an opencoded use of X86_EFLAGS_IF.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/include/asm-x86/system.h